package org.wiztools.te;

import java.io.File;
import static java.io.File.separator;

public class DirectoryConstants{
	private static final String dir = System.getProperty("user.home")
					+ separator + ".te" + separator;
	
	public static final String CLASSES = dir + "classes" + separator;
	public static final String LIB = dir + "lib" + separator;
	public static final String JAR_PLUGIN = dir + "plugins" + separator + "jar" + separator;
	public static final String BSH_PLUGIN = dir + "plugins" + separator + "bsh" + separator;
	
	public static boolean createDirs(){
		boolean b = true;
                File f = new File(CLASSES);
                if(!f.exists()){
                    b = b && f.mkdirs();
                }
                f = new File(LIB);
                if(!f.exists()){
                    b = b && f.mkdirs();
                }
                f = new File(JAR_PLUGIN);
                if(!f.exists()){
                    b = b && f.mkdirs();
                }
                f = new File(BSH_PLUGIN);
                if(!f.exists()){
                    b = b && f.mkdirs();
                }

		return b;
	}
}
